GXHandleAlertStatus
The Finder or QuickDraw GX may send theGXHandleAlertStatus
message. You need to override theGXHandleAlertStatus
message if you want to display status or error dialog boxes that are more complex than those supported by the standard status handling. Your override of theGXHandleAlertStatus
message must match the following formal declaration:
OSErr MyHandleAlertStatus (gxStatusRecord *statRecPtr);
statRecPtr
- A pointer to the status structure.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
The Finder sends theGXHandleAlertStatus
message when it receives the status from a background printing process and wishes to alert the user. QuickDraw GX sends theGXHandleAlertStatus
message when a printer driver calls theGXAlertTheUser
function with a status structure containing a status type ofgxUserAttention
.The default implementation of this message expects that the caller wants to display a printing alert box and performs the actions necessary to do so.
You need to override this message if you want to display status dialog boxes or printing alert boxes that are more complex than are supported by this standard status handling. If you want to override this message, you first check the
statusOwner
field of the status structure to make sure that this message is intended for you. If it is intended for you,
you are free to manage the dialog box yourself.SPECIAL CONSIDERATIONS
You never send theGXHandleAlertStatus
message yourself.If you handle the status, perform a total override of the
GXHandleAlertStatus
message. Otherwise, forward the message so that another message handler can process it.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXAlertTheUser
function is described on page 5-18 in the chapter "Printing Functions for Message Overrides" in this book.The status structure is described on page 4-39.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help